package cn.iocoder.yudao.module.els.controller.admin.codeGenerator.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import cn.iocoder.yudao.module.els.dal.dataobject.codeGeneratorDetail.CodeGeneratorDetailDO;

@Schema(description = "管理后台 - 编码生成器新增/修改 Request VO")
@Data
public class CodeGeneratorSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "生成器名称", example = "赵六")
    @NotBlank(message = "生成器名称不能为空")
    private String generatorName;

    @Schema(description = "编码类型", example = "1")
    @NotBlank(message = "编码类型不能为空")
    private String codeType;

    @Schema(description = "编码长度")
    private Integer codeLength;

    @Schema(description = "流水号长度")
    private Integer serialLength;

    @Schema(description = "编码样例")
    private String codeSample;

    @Schema(description = "编码生成器明细列表")
    @NotEmpty(message = "编码明细值不能为空")
    private List<CodeGeneratorDetailDO> codeGeneratorDetails;

}